﻿using System;

namespace CrawlerLogFolder
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(new Solution().MinOperations(new string[] { "d1/", "d2/", "./", "d3/", "../", "d31/" }));
            Console.WriteLine(new Solution().MinOperations(new string[] { "d1/", "../", "../", "../" }));
            Console.WriteLine(new Solution().MinOperations(new string[] { "d1/", "d2/", "../", "d21/", "./" }));

            Console.WriteLine(new SolutionWithCount().MinOperations(new string[] { "d1/", "d2/", "./", "d3/", "../", "d31/" }));
            Console.WriteLine(new SolutionWithCount().MinOperations(new string[] { "d1/", "../", "../", "../" }));
            Console.WriteLine(new SolutionWithCount().MinOperations(new string[] { "d1/", "d2/", "../", "d21/", "./" }));
        }
    }
}
